//
//  AdoutUsViewController.m
//  GLGW_Shoping
//
//  Created by yang on 2018/12/1.
//  Copyright © 2018年 yang. All rights reserved.
//

#import "AdoutUsViewController.h"
#import "AdoutViewModel.h"
#import "ContactUsViewController.h"
#import "RemittancesAccountViewController.h"
#import "WeIntroduceViewController.h"
#import "FeedbackViewController.h"
#import "UseAgreementViewController.h"

@interface AdoutUsViewController ()<AdoutUsDelegate>
@property (nonatomic,strong) AdoutViewModel * adoutViewModel;
@end

@implementation AdoutUsViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    self.title = @"关于我们";
    self.adoutViewModel = [[AdoutViewModel alloc] initWithViewToViewModel:self.tableView theSuperView:self.view];
    self.adoutViewModel.delegate = self;
    // Do any additional setup after loading the view.
}

#pragma mark -- AdoutUsDelegate
-(void)adoutUsDidSelectRowAtIndexPath:(NSIndexPath *)a_indexPath{
    switch (a_indexPath.row) {
        case 2:{
            ContactUsViewController * contactVc = [ContactUsViewController new];
            [self.navigationController pushViewController:contactVc animated:YES];
        }
            break;
        case 3:{
            RemittancesAccountViewController * remittancesVC = [RemittancesAccountViewController new];
            [self.navigationController pushViewController:remittancesVC animated:YES];
        }
            break;
        case 4:{
            WeIntroduceViewController * introduceVC = [WeIntroduceViewController new];
            [self.navigationController pushViewController:introduceVC animated:YES];
        }
            break;
        case 5:{
            FeedbackViewController * freedBankVC = [FeedbackViewController new];
            [self.navigationController pushViewController:freedBankVC animated:YES];
        }
            break;
        case 6:{
            UseAgreementViewController * userVc = [UseAgreementViewController new];
            [self.navigationController pushViewController:userVc animated:YES];
        }
            break;
            
        default:
            break;
    }
}

@end
